package model.vo;

import java.io.Serializable;

import utils.FNVHash;
public class MsgScheduleCancel implements Serializable {
	
	private static final long serialVersionUID = 1L;
	public Long hashid;
	public String departorgcode;  	//发车站编码 
	public String schedulecode;  	//班次
	public String departdate;      //发车日期
	public String createtime;      //停班时间
	public String reason;      //停班原因
	public String remarks;      //备注
	
	public Long getHashid() {
		return FNVHash.hash64(departorgcode.trim() + "#" + departdate.trim() +"#" + schedulecode.trim());
	}

	public MsgScheduleCancel(Long hashid, String departorgcode, String schedulecode, String departdate,
			String createtime, String reason, String remarks) {
		super();
		this.hashid = getHashid();
		this.departorgcode = departorgcode;
		this.schedulecode = schedulecode;
		this.departdate = departdate;
		this.createtime = createtime;
		this.reason = reason;
		this.remarks = remarks;
	}

	@Override
	public String toString() {
		return "MsgScheduleCancel [hashid=" + hashid + ", departorgcode=" + departorgcode + ", schedulecode="
				+ schedulecode + ", departdate=" + departdate + ", createtime=" + createtime + ", reason=" + reason
				+ ", remarks=" + remarks + "]";
	}
	
}
